<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="../js/vue.js"></script>
    <div id="app">
         <button @click="tab">Tab</button>
         <div v-for="(item,index) in cont" v-show="index==num">{{item}}</div>
    </div>
   
    <script>
        let vm = new Vue({
             el: '#app',
             data:{
                  num:0,
                  cont: ["html内容", "css内容", "javascript内容", "Vue内容"]
             },
             methods: {
                tab:function(){
                    this.num=this.num+1;
                    console.log(this.num);
                }  
             }

         })
    </script>
</body>
</html>